import 'package:flutter/material.dart';
import 'package:flutter_company_app/pages/about/contact_us_page.dart';

class AboutUsPage extends StatefulWidget {
  const AboutUsPage({Key key}) : super(key: key);

  @override
  _AboutUsPageState createState() => _AboutUsPageState();
}

class _AboutUsPageState extends State<AboutUsPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        color: Colors.white,
        child: Column(
          mainAxisAlignment: MainAxisAlignment.start,
          crossAxisAlignment: CrossAxisAlignment.center,
          children: [
            Image.network(
                "https://cdn.pixabay.com/photo/2021/06/07/16/50/woman-6318447_960_720.jpg",
                fit: BoxFit.cover),
            ListTile(
              title: Text("公司介绍"),
              leading: Icon(Icons.message),
              onTap: () {
                Navigator.of(context).pushReplacementNamed("/company_info");
              },
            ),
            Divider(
              height: 10.0,
              color: Colors.grey,
            ),
            ListTile(
              title: Text("公司优势"),
              leading: Icon(Icons.info),
              onTap: () {},
            ),
            Divider(
              height: 10.0,
              color: Colors.grey,
            ),
            ListTile(
              title: Text("联系我们"),
              leading: Icon(Icons.phone),
              onTap: () {
                Navigator.push(
                  context,
                  MaterialPageRoute(
                    builder: (context) => ContactUsPage(),
                  ),
                );
              },
            ),
            Divider(
              height: 10.0,
              color: Colors.grey,
            ),
          ],
        ),
      ),
    );
  }
}
